package cn.yitun.chat.yitunservercommonlib.converter.po2vo.file;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupHeadDataInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupHeadDataVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface GroupHeadDataPo2VoConverter {

    GroupHeadDataPo2VoConverter INSTANCE = Mappers.getMapper(GroupHeadDataPo2VoConverter.class);

    GroupHeadDataInfo vo2po(GroupHeadDataVo vo);

    List<GroupHeadDataInfo> vo2po(List<GroupHeadDataVo> voList);

    @InheritInverseConfiguration
    GroupHeadDataVo po2vo(GroupHeadDataInfo dto);

    @InheritInverseConfiguration
    List<GroupHeadDataVo> po2vo(List<GroupHeadDataInfo> dtoList);
}
